package top.csy8888.ch06.filter;

import jakarta.servlet.*;
import jakarta.servlet.annotation.WebFilter;
import lombok.extern.slf4j.Slf4j;

import java.io.IOException;

/**
 * @author CSY
 * @date 2025 - 09 - 12
 */
//@WebFilter(urlPatterns = "/*")
@Slf4j
public class TestFilter implements Filter {
    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        log.info("经过TestFilter...");
        filterChain.doFilter(servletRequest, servletResponse);
    }
}
